user=g
passwd=1

mylogin(){
sleep 1
echo $user
sleep 1
echo $passwd
sleep 1
}

mylogin | telnet $1 
sleep 10000
